package myPackage.participant.service;

import myPackage.participant.dao.HistoryDao;
import myPackage.participant.dao.ParentDao;
import myPackage.participant.dao.StudentDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import myPackage.participant.*;

import java.util.List;

@Service
public class UserService {
    @Autowired
    protected ParentDao parentDao;
    @Autowired
    protected StudentDao studentDao;
    @Autowired
    protected HistoryDao historyDao;

    public boolean isAdministrator(String username){
        return username.equals("管理员")||username.equals("administrator");
    }

    public ParentDao getParentDao() {
        return parentDao;
    }

    public StudentDao getStudentDao() {
        return studentDao;
    }

    public HistoryDao getHistoryDao() {
        return historyDao;
    }
}
